<?php

/** Mail Address */
define('MAIL_TO', 'roger.yee@hotmail.com');

/** Web Host Name */
define('HOST_NAME', 'localhost');

/** Web URL */
define('HOST_URL', 'http://localhost:9090/JY');

/** Database Name */
define('DB_NAME', 'jy_db');

/** Database User Name */
define('DB_USER', 'root');

/** Database User Password */
define('DB_PASSWORD', '');

/** Database Host URL */
define('DB_HOST', 'localhost');

/** Database Charset */
define('DB_CHARSET', 'utf8');

/** Database Collate */
define('DB_COLLATE', '');

/** Database Collate */
define('DB_DEBUG', FALSE);

/** Database Collate */
define('WEB_DEBUG', TRUE);

/** Extension Directory */
define('EXT_DIR', '/ext');

/** CSS Directory */
define('CSS_DIR',HOST_URL.'/css');

/** JS Directory */
define('JS_DIR',HOST_URL.'/js');

/** Slider Directory */
define('SLIDER_DIR',HOST_URL.EXT_DIR.'/slider');

/** App Images Directory */
define('IMG_DIR', HOST_URL.'/images');

/** Slides Directory */
define('IMG_SLIDES_DIR', HOST_URL.'/images/slide');

/** Product Images Directory */
define('IMG_PRODUCT_DIR',HOST_URL.'/images/product');

/** Partner Images Directory */
define('IMG_PARTNER_DIR',HOST_URL.'/images/partner');

/** Include all required pages from Extension*/
require_once ( EXT_DIR.'/constants.php' );
require_once ( EXT_DIR.'/page-template.php');
require_once ( EXT_DIR.'/functions.php' );
require_once ( EXT_DIR.'/rd-db.php' );
require_once ( EXT_DIR.'/pagination/pagination.php' );

require_once ( 'jy-service.php');

if(!isset($rd_db))
{
	$rd_db = new RD_DB( DB_HOST, DB_USER, DB_PASSWORD, DB_NAME, DB_CHARSET, DB_DEBUG );
}

?>
